﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace LevelEditor.App.Serialization
{
    public class SWaypoint
    {

        private SLocation location;
        [XmlElement("Location")]
        public SLocation Location
        {
            get { return location; }
            set { location = value; }
        }

        private int id;
        [XmlElement("Id")]
        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        private int idCollection;
        [XmlElement("IdCollection")]
        public int IdCollection
        {
            get { return idCollection; }
            set { idCollection = value; }
        }

        private int col;
        [XmlElement("Col")]
        public int Col
        {
            get { return col; }
            set { col = value; }
        }

        private int row;
        [XmlElement("Row")]
        public int Row
        {
            get { return row; }
            set { row = value; }
        }

        private int idCharacter;
        [XmlElement("IdCharacter")]
        public int IdCharacter
        {
            get { return idCharacter; }
            set { idCharacter = value; }
        }

        //private SCharacter character;
        //[XmlElement("Character")]
        //public SCharacter Character
        //{
        //    get { return character; }
        //    set { character = value; }
        //}

        private int next;
        [XmlElement("IdNextWaypoint")]
        public int IdNextWaypoint
        {
            get { return next; }
            set { next = value; }
        }

        private int previous;
        [XmlElement("IdPreviousWaypoint")]
        public int IdPreviousWaypoint
        {
            get { return previous; }
            set { previous = value; }
        }

        //private SWaypoint next;
        //[XmlElement("NextWaypoint")]
        //public SWaypoint NextWaypoint
        //{
        //    get { return next; }
        //    set { next = value; }
        //}

        //private SWaypoint previous;
        //[XmlElement("PreviousWaypoint")]
        //public SWaypoint PreviousWaypoint
        //{
        //    get { return previous; }
        //    set { previous = value; }
        //}
    }
}
